package https.test.demo.config;

import org.slf4j.MDC;
import org.springframework.context.annotation.Configuration;

/**
 * @author www.passjava.cn,公众号：悟空聊架构
 * @date 2022-07-05
 */
//@Configuration
//public class FeignInterceptor implements RequestInterceptor {
//    private static final String TRACE_ID = "traceId";
//
//    @Override
//    public void apply(RequestTemplate requestTemplate) {
//        requestTemplate.header(TRACE_ID, (String) MDC.get(TRACE_ID));
//    }
//}